package com.pig4cloud.pigx.contract.api.v1.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.contract.entity.ContractTrade;
import com.pig4cloud.pigx.contract.open.api.dto.OpenApiLatelyTradeDTOV1;
import com.pig4cloud.pigx.contract.open.api.dto.OpenApiTradeHistoryDTOV1;
import com.pig4cloud.pigx.contract.open.api.vo.OpenApiLatelyTradeVOV1;
import com.pig4cloud.pigx.contract.open.api.vo.OpenApiTradeHistoryVOV1;

import java.util.List;

/**
 */
public interface TradeServiceV1 extends IService<ContractTrade> {

	/**
	 * 获取最近成交记录
	 * @param dto 请求参数
	 * @return 最近成交记录
	 */
	R<List<OpenApiLatelyTradeVOV1>> getLatelyTrade(OpenApiLatelyTradeDTOV1 dto);

	/**
	 * 获取用户历史成交记录
	 * @param dto 请求参数
	 * @return 历史成交记录
	 */
	R<Page<OpenApiTradeHistoryVOV1>> getUserTradeHistory(OpenApiTradeHistoryDTOV1 dto);

}
